package hu.arguscab.game;

import hu.arguscab.ai.game.Bot;
import hu.arguscab.physic.PhysicProperties;
import hu.arguscab.physic.Vector;
import java.io.FileNotFoundException;
import java.io.IOException;

/**
 *
 * @author sharp
 */
public class GameInfo {

	private static GameInfo instance = new GameInfo();

	private static Map map;
	private Ship entity;
	private Vector target;

	public static GameInfo instance() {
		return instance;
	}

	public void Init(int w, int h) throws FileNotFoundException, IOException {
		map = new Map();
		map.setWidth(w);
		map.setHeight(h);
		
		//entity = new Ship(new PhysicProperties(0.1f, 1, 0.3f, 10, 20), new Bot());
		target = new Vector(600, 500);

		//entity.getState().setPos(new Vector(400, 300));
	}

	public static void setMap(Map map) {
		GameInfo.map = map;
	}

	public Map getMap() {
		return map;
	}

	public ShipState getEntityState() {
		return  entity.getState();
	}
}
